Contents
  1. 1. Introduction
  2. 2. 配置文件位置
  3. 3. 配置文件内容

Introduction

这里是我的git全局配置文件,我自己加了一些alias

配置文件位置

C:\Users\Administrator.gitconfig

配置文件内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[push]
default = simple
[merge]
ff = false
[user]
name = XXXXXX
email = XXXXXX@XXX.com
[alias]
co = checkout
mvn4 = mvn -T 4 clean install
mvn3 = mvn -T 3 clean install -DskipTests
ls = log --pretty=format:'%C(yellow)%h %C(blue)%ad %C(red)%d %C(reset)%s %C(green) [%cn]' --decorate --date=short
yesterday = log --since '1 day ago' --oneline --author anzhenglei@i360r.com
graph = log --graph --pretty=format:'%C(yellow)%h %C(blue)%d %C(reset)%s %C(white)%an, %ar%C(reset)'
graph2 = log --color --graph --pretty
latest = for-each-ref --count=10 --sort=-committerdate --format='%(committername)@%(refname:short) [%(committerdate:short)] %(contents)'
Contents
  1. 1. Introduction
  2. 2. 配置文件位置
  3. 3. 配置文件内容